package cn.com.surker.base.controller;

import cn.com.surker.base.system.dao.SysLineDao;
import cn.com.surker.base.system.entity.SysLine;
import cn.com.surker.base.system.service.SysLineService;
import cn.com.surker.common.AbstractController;
import cn.com.surker.enums.StateEnum;
import cn.com.surker.enums.production.invoice.InvoiceProcessEnum;
import cn.com.surker.production.entity.ProductionIndentDispatch;
import cn.com.surker.production.entity.vo.DispatchVo;
import cn.com.surker.production.service.ErpIndentDispatchService;
import cn.com.surker.spring.RestResultDto;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.*;
import java.util.stream.Collectors;

/**
 * 生产线业务类
 *
 * @author luotao
 * @date 2024/9/24
 */
@RestController
@RequestMapping("/sys/line")
public class LineController extends AbstractController {

	@Resource
	private SysLineService sysLineService;


	/**
	 * 查询生产线列表
	 *
	 * @return
	 */
	@RequestMapping(value = "/list", method = RequestMethod.POST)
	@ResponseBody
	public RestResultDto list() {
		List<SysLine> sysLines = sysLineService.findList(null);
		return RestResultDto.success(sysLines);
	}


}
